/** 
* Copyright (C) 2012-2018 ZEEI Inc.All Rights Reserved.
* 项目名称：pls
* 文件名称：EnvironmentQualityGisController.java
* 包  名  称：com.zeei.gis.controller
* 文件描述：TODO 请修改文件描述
* 创建日期：2018年1月26日下午1:37:53
* 
* 修改历史
* 1.0 jiangqingpeng 2018年1月26日下午1:37:53 创建文件
*
*/
package com.zeei.gis.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zeei.common.annotation.SysLog;
import com.zeei.common.controller.BasicController;
import com.zeei.common.enums.LogType;
import com.zeei.common.vo.ResultRowsVO;
import com.zeei.gis.service.EnvironmentQualityGisService;
import com.zeei.gis.vo.EnvironmentQualityGisVO;

/**
 * @类型名称：EnvironmentQualityGisController
 * @类描述：TODO 环境质量排污管理
 * @功能描述：TODO 环境质量排污管理
 * @创建作者：jiangqingpeng
 */
@Controller
@RequestMapping("/gis/enviromentquality")
public class EnvironmentQualityGisController extends BasicController{

	@Autowired
	EnvironmentQualityGisService environmentQualityGisService;
	
	@RequestMapping(value="/arearank", method=RequestMethod.POST)
	@ResponseBody
	@SysLog(text="查询地区污染物浓度平均值排名", type=LogType.View)
	public ResultRowsVO<EnvironmentQualityGisVO> queryAverageConcentrationRank(EnvironmentQualityGisVO environmentQualityGisVO) {
		List<EnvironmentQualityGisVO> listData = environmentQualityGisService.queryAverageConcentrationRank(environmentQualityGisVO);
		return this.createResultRowsVO(listData, true, "", listData.size());
	}
	
	@RequestMapping(value="stationrank", method=RequestMethod.POST)
	@ResponseBody
	@SysLog(text="查询监测点污染物浓度平均值排名", type=LogType.View)
	public ResultRowsVO<EnvironmentQualityGisVO> queryAirStationAverageConcentrationRank(EnvironmentQualityGisVO environmentQualityGisVO) {
		List<EnvironmentQualityGisVO> listData = environmentQualityGisService.queryAirStationAverageConcentrationRank(environmentQualityGisVO);
		return this.createResultRowsVO(listData, true, "", listData.size());
	}
}
